-
-
Notifications
You must be signed in to change notification settings - Fork 702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove get_val in serialization #1587
Conversation
remove get_val in serialization and mark as unimplemented!() replace get_val with iter in linear codec remove MultivalueStartIndexRandomSeeker replace MultivalueStartIndexIter with closure Sample 100 values in linear codec
.collect::<Vec<_>>(); | ||
let limit_num_vals = column.num_vals().min(100_000); | ||
|
||
let num_samples = 100; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the step_by solution.
Can you change the column.num_vals() limit above to 100 too, to make proofreading even easier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand, 100 instead of 100_000?
Codecov Report
@@ Coverage Diff @@
## main #1587 +/- ##
==========================================
- Coverage 93.79% 93.75% -0.04%
==========================================
Files 251 251
Lines 46329 46278 -51
==========================================
- Hits 43456 43390 -66
- Misses 2873 2888 +15
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
if old_doc == u32::MAX { | ||
// sentinel value for last offset | ||
return offset; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wouldn't doing the chain below do the same thing?
doc_id_map
.iter_old_doc_ids()
.map(move |old_doc| { ... })
.chain(iter::once(offset))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would, but offset is already owned by the closure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comments inline
remove get_val in serialization and mark as unimplemented!()
replace get_val with iter in linear codec
remove MultivalueStartIndexRandomSeeker
replace MultivalueStartIndexIter with closure
Sample 100 values in linear codec
remove Mutexes